﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using PBDesk.Utilities;
using PBDesk.com.Extension.FeedsAggregator;
using PBDesk.com.Extension.UmbHelper;
using System.Configuration;


namespace PBDesk.com.Controllers
{
    public class AdminTasksController : Controller
    {
        public ActionResult Index()
        {
                   
            return new EmptyResult();
        }

        //public ActionResult TWC9Cache()
        //{
        //    AdminTasks.WriteTWC9File();
        //    return new EmptyResult();
            
        //}

        //public ActionResult PBDeskRssCache()
        //{
        //    AdminTasks.WritePBDeskRssFile();
        //    return new EmptyResult();
        //}

        //public ActionResult NewsFeedsCache()
        //{
        //    AdminTasks.GenerateNewsFeedsCache();
        //    return new EmptyResult();
           
        //}

        public ActionResult UpdateFeedFilesA()
        {
            AdminTasks.WriteTWC9File();
            return new EmptyResult();
        }

        public ActionResult UpdateFeedFilesB()
        {
            AdminTasks.WritePBDeskRssFile();
            return new EmptyResult();
        }

        public ActionResult UpdateFeedFilesC()
        {
            AdminTasks.UpdateFeedFiles("C");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesD()
        {
            AdminTasks.UpdateFeedFiles("D");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesE()
        {
            AdminTasks.UpdateFeedFiles("E");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesF()
        {
            AdminTasks.UpdateFeedFiles("F");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesG()
        {
            AdminTasks.UpdateFeedFiles("G");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesH()
        {
            AdminTasks.UpdateFeedFiles("H");
            return new EmptyResult();
        }
        public ActionResult UpdateFeedFilesI()
        {
            AdminTasks.UpdateFeedFiles("I");
            return new EmptyResult();
        }

      

    }
}
